package com.ruoyi.project.business.salesDetail.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 销售流水对象 yl_sales_detail
 * 
 * @author ruoyi
 * @date 2021-04-27
 */
public class YlSalesDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售流水ID */
    private Long salesId;

    /** 机器ID */
    @Excel(name = "机器ID")
    private String machineId;

    /** 取货码 */
    @Excel(name = "取货码")
    private Long pickCode;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal productPrice;

    /** 轨道编号或咖啡商品编号 */
    @Excel(name = "轨道编号或咖啡商品编号")
    private String trackNo;

    /** 销售时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date saleTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setSalesId(Long salesId)
    {
        this.salesId = salesId;
    }

    public Long getSalesId()
    {
        return salesId;
    }
    public void setMachineId(String machineId)
    {
        this.machineId = machineId;
    }

    public String getMachineId()
    {
        return machineId;
    }
    public void setPickCode(Long pickCode)
    {
        this.pickCode = pickCode;
    }

    public Long getPickCode()
    {
        return pickCode;
    }
    public void setProductName(String productName)
    {
        this.productName = productName;
    }

    public String getProductName()
    {
        return productName;
    }
    public void setProductPrice(BigDecimal productPrice)
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice()
    {
        return productPrice;
    }
    public void setTrackNo(String trackNo)
    {
        this.trackNo = trackNo;
    }

    public String getTrackNo()
    {
        return trackNo;
    }
    public void setSaleTime(Date saleTime)
    {
        this.saleTime = saleTime;
    }

    public Date getSaleTime()
    {
        return saleTime;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("salesId", getSalesId())
            .append("machineId", getMachineId())
            .append("pickCode", getPickCode())
            .append("productName", getProductName())
            .append("productPrice", getProductPrice())
            .append("trackNo", getTrackNo())
            .append("saleTime", getSaleTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
